package com.demo.pattern.simplefactory.order;

import java.util.Calendar;

/**
 * @author sourire
 * @version 1.0
 * @date 2020/8/18 11:29
 */
public class Test {
    public static void main(String[] args) {
        //传统方式写法
        //new OrderPizza("dd").creatPizza();

        //简单工厂模式
        new OrderPizza1("pepper");
        Calendar cal = Calendar.getInstance();
    }
}
